﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Reflection;

/// <summary>
///LeftTreeMenuFactory 的摘要说明
/// </summary>
public class LeftTreeMenuFactory
{
    public static ILeftTreeMenu GetLeftTreeMenuClass(string classname)
    {
        try
        {
            return (ILeftTreeMenu)Assembly.Load("App_Code").CreateInstance(classname);
        }
        catch (Exception ex)
        {
            return null;
        }
    }
}
